//
//  KKRSAEncryptor.h
//  KKRSA
//
//  Created by liaozhenming on 16/7/13.
//  Copyright © 2016年 liaozhenming. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface KKRSAEncryptor : NSObject

//  加密－公钥文件
+ (NSString*)kk_encryptString:(NSString*)string publicKeyWithContentsOfFile:(NSString*)path;

//  解密－私钥文件
+ (NSString*)kk_decryptString:(NSString*)string privateKeyWithContentsOfFile:(NSString*)path password:(NSString*)password;


//  加密－公钥字符串
+ (NSString*)kk_encryptString:(NSString *)string publicKey:(NSString*)publicKey;

//  解密－私钥字符串
+ (NSString*)kk_decryptString:(NSString *)string privateKey:(NSString*)privateKey;

@end
